package com.springboot.admin.mapper;

import com.springboot.admin.entity.CateDto;
import com.springboot.admin.entity.NavigationDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface NavigationDao {

  public List<NavigationDto> getAll();

  public NavigationDto getDetail(@Param("id") int id);

  public boolean insertOne(NavigationDto navigationDto);

  public boolean delOne(@Param("id") int id);

  public boolean updateOne(NavigationDto navigationDto);

  public List getCate();

  public boolean updateCate(CateDto cateDto);

  public boolean delCate(@Param("id") int id);

  public boolean insertCate(CateDto cateDto);

  public List<Map> getListByCate(String cate);
}

